package com.lw.behavioral.state;

//实现状态===开始状态
public class StartState implements State {
 
   public void doAction(Context context) {
      System.out.println("Player is in start state");//在改变状态时所带的===行为
      context.setState(this); //改变实体对象的状态
   }
 
   public String toString(){
      return "Start State";
   }
}